package cn.chenhao.pet.service;

import cn.chenhao.basic.service.IBasicService;
import cn.chenhao.basic.util.PageList;
import cn.chenhao.pet.domain.Pet;
import cn.chenhao.pet.domain.SearchMasterMsg;
import cn.chenhao.pet.query.SearchMasterMsgQuery;

public interface ISearchMasterMsgService extends IBasicService<SearchMasterMsg> {

    /* 寻主发布业务 */
    void publish(SearchMasterMsg msg, Long id);

    /* 待处理消息 */
    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery searchMasterMsgQuery, Long id);

    /* 已处理消息 */
    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery searchMasterMsgQuery, Long id);

    /* 个人中心 */
    PageList<SearchMasterMsg> queryUserMsg(SearchMasterMsgQuery searchMasterMsgQuery, Long id);

    /* 处理寻主消息 */
    void handle(Pet pet, Long id);

}
